package com.sftz.modules.minapp.paper.dto;

import java.util.Date;
import java.util.Set;

import lombok.Data;

import com.uxuexi.core.common.util.Util;

@Data
public class PaperAnswerDto {

	//试卷id
	private Integer id;

	//答题所用时间(秒)
	private int elapsedTime = 0;

	//建议答题时间(秒)
	private long answerTime = 0;

	//剩余作答时间
	private long leftSeconds = 0;

	//开始考试时间
	private Date startDate;

	//标题
	private String title;

	//试题总数
	private Integer questCount;

	//作答记录id
	private Integer recordId;

	//分数
	private int score;

	//合格分数
	private int passScore;

	private double ratingScore;

	/**
	 * 试题信息
	 */
	Set<PaperAnswerQuestionDto> questList;

	public int getQuestCount() {
		if (Util.isEmpty(questList)) {
			questCount = 0;
		} else {
			questCount = questList.size();
		}
		return questCount;
	}
}
